<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>宽情微服务注册中心APP下载</title>
    <script src="./axios.min.js"></script>
</head>

<body>
    <div class="wrap">
        <div class="fixe-button">
            <div class="button IOS">
                <img src="./IOS.png" alt="" srcset=""> IOS下载 <span>(暂未开放)</span>
            </div>
            <div class="button Android" onclick="androidDownload()">
                <img src="./Android.png" alt="" srcset="">Android下载
            </div>
        </div>
        <div id="browser" class="browser hide"></div>
    </div>

    <style>
        html body {
            padding: 0;
            margin: 0;
            font-family: 'PingFang SC', 'Avenir', Helvetica, Arial, sans-serif;
            line-height: 1;

            background: #000000;
        }

        .wrap {
            position: fixed;
            right: 0;
            left: 0;
            top: 0;
            bottom: 0;
            padding: 0;
            margin: 0;
            max-width: 750px;
            margin: 0 auto;
            background-image: url("./image1.png");
            background-size: cover;
            background-position: top;
            background-repeat: no-repeat;
        }

        .fixe-button {
            display: flex;
            justify-content: space-around;
            position: absolute;
            left: 0;
            right: 0;
            bottom: 20px;
        }

        .fixe-button .button {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 300px;
            height: 60px;
            line-height: 60px;
            text-align: center;
            font-size: 20px;
            border-radius: 30px;
            cursor: pointer;
        }

        .fixe-button .button span {
            font-size: 12px;
            padding: 5px 0 0 5px;
        }

        .fixe-button .button.IOS {
            background: linear-gradient(267deg, #37DC6D 0%, #34D1F9 100%);
        }

        .fixe-button .button.Android {
            background: #37DC6D
        }

        .fixe-button .button img {
            padding-bottom: 5px;
            margin-right: 10px;
            height: 30px;
            width: auto;
        }

        .browser {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8) url("./image2.png");
            background-size: 750px;
            background-position: top right;
            background-repeat: no-repeat;
        }

        @media screen and (max-width: 750px) {
            .fixe-button {
                bottom: 20vw;
            }

            .fixe-button .button {
                width: 42vw;
                height: 10vw;
                line-height: 10vw;
                font-size: 3.6vw;
                border-radius: 5vw;
            }

            .fixe-button .button span {
                font-size: 2.6vw;
                padding: 1vw 0 0 1vw;
            }

            .fixe-button .button img {
                padding-bottom: 1vw;
                margin-right: 1vw;
                height: 4.5vw;
            }

            .browser {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.8) url("./image2.png");
                background-size: 90vw;
                background-position: top right;
                background-repeat: no-repeat;
            }
        }
    </style>
    <script>
        function androidDownload() {
            if (isWeiXin()) {
                document.getElementById('browser').style.display = "block"

            } else {
                console.log("---**")
                window.location.href = "https://www.lihui888.com/GuoChao/file/guochao.apk";
            }
        }
        function isWeiXin() {
            var ua = window.navigator.userAgent.toLowerCase();
            if (ua.match(/MicroMessenger/i) == 'micromessenger') {
                return true;
            } else {
                return false;
            }
        }
    </script>
</body>

</html>